package com.xtaller.sdboot.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author : Taller
 * @date : 2020/2/24 00:55
 * @Description :
 */
@Data
public class LoginVO {
    @NotNull(message = "登录账号不能为空")
    @Length(min=11 ,max=32, message="登录账号长度不正确")
    @ApiModelProperty(value = "登录账号")
    private String mobile;

    @NotNull(message = "登录密码不能为空")
    @Length(max=50, message="密码字符长度有误")
    @ApiModelProperty(value = "登录密码")
    private String password;

    @NotNull(message = "验证码不能为空")
    @Length(min=4, max=4, message="验证码长度不正确")
    @ApiModelProperty(value = "验证码")
    private String code;
}
